package com.dayuanit.booksystem.v2.thread;

import java.sql.Connection;

public class ConnectionThread {

    //将Connection对象保存在当前线程中
    //注意：保存在本地线程的对象，使用完后，要记得调用remove方法将其移走，防止内存泄露
    public static final ThreadLocal<Connection> connThreadLocal = new ThreadLocal<>();
}
